//main.ts
 
import { createApp } from 'vue'
import App from '@/App.vue'
 
//导入router配置文件
import route from '@/route/router'
 
//类似于:
/**
vue-cli:
Vue.use(router)
const app = new Vue({
	render: h => h(App)
}).$mount("#app")
*/
 
const app = createApp(App)
//全局注册
app.use(route)
 
app.mount('#app')